﻿#ifndef COOKIEUTILS_H
#define COOKIEUTILS_H

#include <httprequest.h>
#include <httpresponse.h>
using namespace stefanfrings;

class CookieUtils
{
public:
    CookieUtils();
    ~CookieUtils();
    static void clearRefreshTokenCookie(HttpResponse &response);

    static void setRefreshTokenCookie(HttpResponse &response,QByteArray &refreshToken);

    static QByteArray getRefreshTokenFromCookie(HttpRequest &response);

};
#endif // COOKIEUTILS_H
